<template>
  <div class="line_titles">
    <img class="img-1" src="@/assets/image/border.png" />
    <img class="img-2" src="@/assets/image/border.png" />
    <img class="img-3" src="@/assets/image/border.png" />
    <img class="img-4" src="@/assets/image/border.png" />
    <div class="item_title">
      <div class="zuo"></div>
      <!-- <slot name="header"></slot> -->
      <span class="title-inner">{{ title }}</span>
      <div class="you"></div>
    </div>
    <div class="item_title_content_def">
      <slot></slot>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  props: {
    title: {
      type: String,
      default: () => '',
    },
    reverse: {
      type: Boolean,
      default: () => false,
    },
  },
  created() {},

  mounted() {},
  methods: {},
}
</script>
<style lang="less" scoped>
.line_titles {
  box-sizing: border-box;

  // :deep(.border-box-content) {
  //   box-sizing: border-box;
  //   padding: 6px 16px 0px;
  // }
  border: 2px solid #3265a2;
  position: relative;
  .img-1,
  .img-2,
  .img-3,
  .img-4 {
    position: absolute;
  }
  .img-1 {
    left: -11px;
    top: -11px;
  }
  .img-2 {
    right: -11px;
    top: -11px;
  }
  .img-3 {
    left: -11px;
    bottom: -11px;
  }
  .img-4 {
    right: -11px;
    bottom: -11px;
  }
  .item_title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 76px;
    background: linear-gradient(90deg, rgba(84, 147, 241, 0.06) 0%, rgba(87, 148, 251, 0.16) 52%, rgba(88, 154, 251, 0.06) 100%);

    .zuo,
    .you {
      width: 58px;
      height: 14px;
      background-image: url('../../assets/image/titles/zuo.png');
    }

    .you {
      transform: rotate(180deg);
    }
    .title-inner {
      padding: 0 8px;
      font-weight: 600;
      // letter-spacing: 2px;
      // background: linear-gradient(92deg, #0072ff 0%, #00eaff 48.8525390625%, #01aaff 100%);
      // -webkit-background-clip: text;
      // -webkit-text-fill-color: transparent;
      font-size: 28px;
      // font-family: YouSheBiaoTiHei;
      color: #ffffff;
      line-height: 47px;
      text-shadow: 0px 2px 16px #58d8fb;
    }
  }
  .item_title_content {
    height: calc(100% - 38px);
  }

  .item_title_content_def {
    width: 100%;
    height: 100%;
  }
}
</style>
